package com.xiaodou.mjf.web.xface.product.controller;

import com.google.common.collect.Maps;
import com.xiaodou.mjf.infrastructure.common.controller.ApiController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * Created by Rocky on 15/3/27.
 */
@Controller
@RequestMapping("v1/order")
public class NotifyController extends ApiController {

    @RequestMapping("return_url")
    public String return_(HttpServletRequest request) throws UnsupportedEncodingException {
        Map<String,String> result = Maps.newHashMap();
        result.put("code",request.getParameter("code"));
        result.put("message",request.getParameter("message"));


        return "pay/result";
    }

}
